﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using RM.Entities;
using System.ServiceModel;

namespace RM.Web.Services
{
    [ServiceContract]
    public interface IQuestionService
    {
        [OperationContract(Name = "Question_GetAll")]
        IList<Question> GetAll();

        [OperationContract(Name = "Question_GetAllBySearch")]
        IList<Question> GetAllBySearch(string searchString);

        [OperationContract(Name = "Question_Save")]
        [ReferencePreservingDataContractFormat]
        void Save(Question question);

        [OperationContract(Name = "Question_Update")]
        void Update(Question question);

        [OperationContract(Name = "Question_GetById")]
        Question GetById(int Id);
    }
}
